﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Model.Mail
{
    public partial class MailInfo
    {
        public const string INSERT_SQL = "insert into [Mail] ( [ID], [Name], [Content], [CreatorID], [CreatorName], [RecieveIDs], [RecieveNames], [CopyToIDs], [CopyToNames], [AskReceipt], [InputTime]) values ( @ID, @Name, @Content, @CreatorID, @CreatorName, @RecieveIDs, @RecieveNames, @CopyToIDs, @CopyToNames, @AskReceipt, @InputTime)";
        public const string UPDATE_SQL = "update [Mail] set  [ID] = @ID, [Name] = @Name, [Content] = @Content, [CreatorID] = @CreatorID, [CreatorName] = @CreatorName, [RecieveIDs] = @RecieveIDs, [RecieveNames] = @RecieveNames, [CopyToIDs] = @CopyToIDs, [CopyToNames] = @CopyToNames, [AskReceipt] = @AskReceipt, [InputTime] = @InputTime where ID = @ID";
        public MailInfo() { }
        public Int32 ID
        {
            get;
            set;
        }
        public String Name
        {
            get;
            set;
        }
        public String Content
        {
            get;
            set;
        }
        public Int32 CreatorID
        {
            get;
            set;
        }
        public String CreatorName
        {
            get;
            set;
        }
        public String RecieveIDs
        {
            get;
            set;
        }
        public String RecieveNames
        {
            get;
            set;
        }
        public String CopyToIDs
        {
            get;
            set;
        }
        public String CopyToNames
        {
            get;
            set;
        }
        public Boolean AskReceipt
        {
            get;
            set;
        }
        public DateTime InputTime
        {
            get;
            set;
        }
    }

}
